package com.gict.antifraudback.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gict.antifraudback.entity.Article;
import com.gict.antifraudback.service.ArticleService;
import com.gict.antifraudback.mapper.ArticleMapper;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author XIE
* @description 针对表【article】的数据库操作Service实现
* @createDate 2023-11-02 15:18:53
*/
@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article>
    implements ArticleService{

    @Override
    public List<Article> selectRandomTenByType(Integer contentType) {
        return this.baseMapper.selectRandomTenByType(contentType);
    }

    @Override
    public List<Article> randomThreeArticle() {
        return this.baseMapper.selectRandomArticle();
    }
}




